<?php
$arr=array("name"=>"张三","age"=>20);
echo json_encode($arr)
?>